<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page session="false" %>
<%@ page import="java.sql.*" %>

 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%

String connectionURL = "jdbc:oracle:thin:@//w4111b.cs.columbia.edu:1521/ADB";
Connection connection=null;
connection = DriverManager.getConnection(connectionURL, "ab3416", "kFxJssQk");
request.getSession().setAttribute("Connection",connection);

%>


<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />

<title>Login Page</title>
<script language = "Javascript">
	function Validate(){
	var user=document.frm.user;
	var pass=document.frm.pass;
 
	if ((user.value==null)||(user.value=="")){
	alert("Please Enter user name");
	user.focus();
	return false;
	}
	if ((pass.value==null)||(pass.value=="")){
	alert("Please Enter password");
	pass.focus();
	return false;
	}
	return true;
	}
</script> 
</head>
<body>
<h1 style="text-align:center">Welcome to Zen-Arch Online Store</h1>
<h3>Login</h3>

<%@ page session="false" %>  
<form name="frm" action="LoginAuthentication" method="Post" onSubmit="return Validate()" >
<h4>Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="user" value=""/></h4><br>
<h4>Password:<input type="password" name="pass" value=""/></h4><br>
<br>&nbsp;&nbsp;&nbsp;<input type="submit" value="Sign-In" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="Reset" />
</form>
<h4>New Users Please Register <a href="Registration.jsp">Here</a></h4><br><br>
</body>
</html>